//
//  AFHTTPData.h
//  WXOpenIMSampleRelease
//
//  Created by 中矿科技有限公司 on 16/7/4.
//  Copyright © 2016年 taobao. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AFHTTPData : NSObject

typedef void(^BSuccess)(NSData *data);
typedef void(^BFailure)(NSError *error);

-(void)getDataWithUrl:(NSString *)strUrl onSuccess:(BSuccess)success onFailure:(BFailure)failure;

-(void)postDataWithUrl:(NSString *)strUrl httpBobyData:(id)dictObj  onSuccess:(BSuccess)success onFailure:(BFailure)failure;

-(void)postTokenDataWithUrl:(NSString *)strUrl httpBobyData:(id)dictObj onSuccess:(BSuccess)success onFailure:(BFailure)failure;

-(void)postSessionDataWithUrl:(NSString *)strUrl  httpBoby:(id)obj onSuccess:(BSuccess)success onFailure:(BFailure)failure;

-(void)postSessionBodyDataWithUrl:(NSString *)strUrl  httpBobyImage:(id)images httpBobyDcit:(id)dictObj  onSuccess:(BSuccess)success onFailure:(BFailure)failure;



@end
